//package com.waste.game.controller;
//
//import com.github.pagehelper.PageInfo;
//import com.waste.game.entity.GameListBean;
//import com.waste.game.entity.LbtBean;
//import com.waste.game.mapper.WebServeMapper;
//import com.waste.game.service.GameListService;
//import com.waste.game.service.WebService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.ui.Model;
//import org.springframework.web.bind.annotation.*;
//
//import javax.servlet.http.Cookie;
//import javax.servlet.http.HttpServletResponse;
//import java.util.List;
//
//@Slf4j
//@RestController
//public class GameHomeBodyController {
//
//    @Autowired
//    private GameListService gameListService;
//
//    @Autowired
//    private WebServeMapper webServeMapper;
//
//    @PostMapping("/{pageNum}")
//    public PageInfo<GameListBean> GameHomeGet(@PathVariable(value = "pageNum")Integer pageNum, Integer pageSize){
////        List<GameListBean> gameListBeans = gameListService.getIndexGame();
////        PageInfo<GameListBean> pageInfo =  gameListService.getAllPage(pageNum,9);
////        model.addAttribute("pageInfo",pageInfo);
////        model.addAttribute("homelist",gameListBeans);
//        return gameListService.getAllPage(pageNum,9);
//    }
//
//    @PostMapping("/dl")
//    public List<GameListBean> GameDlGet(){
//
//        return gameListService.getDlLookGame();
//    }
//
//    @PostMapping("/pc")
//    public List<GameListBean> GamePcGet(){
//        return gameListService.getPcLookGame();
//    }
//
//    @GetMapping("/lbt")
//    public List<LbtBean> getLbt(){
//        return webServeMapper.getLbt();
//    }
//
////    @GetMapping("cookie")
////    public String getCookie(HttpServletResponse response){
////        Cookie ok = new Cookie("FWFlag","1");
////        response.addCookie(ok);
////        log.info("cookie:{}",ok);
////        return "ok";
////    }
//}
